//
//  TravelTripViewController.m
//  W.E.S.T
//
//  Created by xalo on 16/7/14.
//  Copyright © 2016年 蓝鸥科技有限公司西安分公司. All rights reserved.
//

#import "TravelTripViewController.h"

@interface TravelTripViewController ()<UIWebViewDelegate>

@property (nonatomic,strong)UIWebView *webView;
@end

@implementation TravelTripViewController

- (UIWebView *)webView{
    if (!_webView) {
        _webView=[[UIWebView alloc]initWithFrame:self.view.frame];
        _webView.delegate=self;
        _webView.scrollView.bounces=NO;
        _webView.scrollView.bouncesZoom=NO;
       // _webView.userInteractionEnabled=NO;
    }
    return _webView;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor=[UIColor purpleColor];
    [self.view addSubview:self.webView];
    //折扣推荐请求数据
    NSString *discountString=[NSString stringWithFormat:@"http://appview.qyer.com/z/deal/%@/?campaign=zkapp&category=%@",self.discountID,self.discountID];
    [[UIApplication sharedApplication]openURL:[NSURL URLWithString:discountString]];
   
    //NSLog(@"%@",self.discountID);

    //精品游记请求数据
    NSString *tripString = [NSString stringWithFormat:@"http://appview.qyer.com/bbs/thread-%@-1.html?source=app&client_id=qyer_ios&track_user_id=5243420&track_deviceid=3275126F-D96E-4BD2-AE3A-4570FE80E2B5&track_app_version=5.4",self.typeid];
   // NSLog(@"%@",self.typeid);
    
    [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:tripString]]];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
